﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;

namespace Wolfy.NetDisk.Core.Model
{
    /// <summary>
    /// 站点日志
    /// </summary>
    public class Log : DeleteEntity
    {
        /// <summary>
        /// 操作
        /// </summary>
        public string Op { set; get; }
        /// <summary>
        /// 日志所属用户
        /// </summary>
        public User User { set; get; }
        /// <summary>
        /// 日志类型
        /// </summary>
        public LogType LogType { set; get; }
     
        private string ip = HttpContext.Current.Request.UserHostAddress;
        /// <summary>
        /// 客户端ip(只读)
        /// </summary>
        public string Ip
        {
            get
            {
                return ip;
            }
            set { ip = value; }
        }
        /// <summary>
        /// 操作内容
        /// </summary>
        public string Conent { set; get; }
    }
}
